package com.balabala.gym_goods.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author fsj   课程表
 * @date 2023/5/5 15:32
 */
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_course")
@Data
@Builder
public class Course {

    @TableId(type= IdType.AUTO)
    private Long id;
    /**
     * 课程名称
     */
    private String name;
    /**
     * 课程图片
     */
    private String pic;
    /**
     * 视频地址
     */
    private String videoAddress;

    /**
     * 课程时长
     */
    private Integer time;
    /**
     * 课程类型（1：团课2：私教）
     */
    private Integer courseType;

    /**
     * 最多上课人数
     */
    private Integer mastClassNum;
    /**
     * 教练id
     */
    private Long coachId;
    @TableField(exist = false)
    private String coachName;
    /**
     * 课计类型
     */
    private Integer coursePlanType;
    /**
     * 课时费
     */
    private String courseMoney;
    /**
     * 人数不足不开课
     */
    private Integer underNumber;
    /**
     * 课程备注
     */
    private String remarks;
    /**
     * 课程标签
     */
    private String courseLabel;
    /**
     * 课程介绍
     */
    private String introduce;
    /**
     * 排序
     */
    private Integer sort;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
    @TableField(exist = false)
    private String courseTime;

    //预约人数
   private Integer  numAppointment;

}
